package com.qnw.CardGroupManagement;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import com.ygo.feihua.DecompressionZipThread;
import com.ygo.feihua.Gongju;
import com.ygo.feihua.R;
import android.support.v7.app.AppCompatActivity;
import com.ygo.feihua.util.*;
import java.io.*;

public class YrpManagement extends AppCompatActivity
{

	private Gongju gj;
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		// TODO: Implement this method
		super.onCreate(savedInstanceState);
		setContentView(R.layout.yrp_management);
		
		gj=Gongju.getdx(this);
		Intent intent =this. getIntent();
		String action = intent.getAction();
		if(intent.ACTION_VIEW.equals(action)){

			String path1=intent.getData().getPath();
			try
			{
				FileUtil.copyFile(path1, SharedPreferenceUtil.getYgopath() + "replay/", false);
				gj.show("已复制录像到YGOmobile中");
			}catch (IOException e){
				gj.show("复制录像失败,原因为"+e);
			}
			
			finish();
			
		}
	}
	
}
